package com.yangyouqi.chaper2;

import com.yangyouqi.chaper2.config.ConfigBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author 杨友奇
 * @Time 2018/7/26
 *
 * 配置文件解析
 *
 * 乱码的话：设置 File Encodings的Transparent native-to-ascii conversion为true，具体步骤如下：依次点击
 * File -> Settings -> Editor -> File Encodings
 * 将Properties Files (*.properties)下的Default encoding for properties files设置为UTF-8，
 * 将Transparent native-to-ascii conversion前的勾选上。
 */
@SpringBootApplication
@EnableConfigurationProperties({ConfigBean.class})
public class Chaper2Application {
    public static void main(String[] args) {
        SpringApplication.run(Chaper2Application.class,args);
    }

}
